package com.liqing.movecomment.entity;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Score)实体类
 *
 * @author makejava
 * @since 2023-05-08 02:01:49
 */
@Data
public class Score implements Serializable {
    private static final long serialVersionUID = -16846579793228201L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 电影id
     */
    private Integer moveId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 用户评分
     */
    private double score;
    /**
     * 标签id
     */
    private Integer tagId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
